package jgs1904.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/userController")
public class UserController {

    @RequestMapping("/userDel")
    @ResponseBody
    @RequiresPermissions("user:del")
    public String userDel() {
        return "/user/userDel";
    }


    @RequestMapping("/userEdit")
    @ResponseBody
    @RequiresPermissions("user:edit")
    public String userEdit() {
        return "/user/userEdit";
    }

    @RequestMapping("/userAdd")
    @ResponseBody
    public String userAdd() {
        return "/user/userAdd";
    }


    @RequestMapping("/userSel")
    @ResponseBody
    public String userSel() {
        return "/user/userSel";
    }

}
